/**
 *
 */
package com.zhuoyue.elmt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eit.eitsite.common.persistence.Page;
import com.eit.eitsite.common.service.CrudService;
import com.zhuoyue.elmt.entity.WbFaultComplaints;
import com.zhuoyue.elmt.dao.WbFaultComplaintsDao;

/**
 * 故障投诉Service
 * @author ChenHao
 * @version 2017-01-13
 */
@Service
@Transactional(readOnly = true)
public class WbFaultComplaintsService extends CrudService<WbFaultComplaintsDao, WbFaultComplaints> {

	public WbFaultComplaints get(String id) {
		return super.get(id);
	}
	
	public List<WbFaultComplaints> findList(WbFaultComplaints wbFaultComplaints) {
		return super.findList(wbFaultComplaints);
	}
	
	public Page<WbFaultComplaints> findPage(Page<WbFaultComplaints> page, WbFaultComplaints wbFaultComplaints) {
		return super.findPage(page, wbFaultComplaints);
	}
	
	@Transactional(readOnly = false)
	public void save(WbFaultComplaints wbFaultComplaints) {
		super.save(wbFaultComplaints);
	}
	
	@Transactional(readOnly = false)
	public void delete(WbFaultComplaints wbFaultComplaints) {
		super.delete(wbFaultComplaints);
	}

	public WbFaultComplaints getByFaultNo(String faultNo) {
		return dao.getByFaultNo(faultNo);
	}

	@Transactional(readOnly = false)
	public int modifyFaultState(WbFaultComplaints wbFaultComplaints){
		return dao.modifyFaultState(wbFaultComplaints);
	}
	
}